<%@ taglib uri="http://jawr.net/tags" prefix="jwr" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; UTF-8">
	<title>O bar da vez</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
    <jwr:style src="/bundles/all.css" />
    <jwr:script src="/bundles/all.js"/>
    

	
</head>
<body ng-app="aplicacao" id="ng-app" ng-controller="init">
	<div ng-include="'placeHolder.jsp'"></div>
	<div ng-controller="parceiro">
		<div ng-include="'topo.jsp'"></div>
		
		<div class="centercolumn">
			<div class="bar-header">	
				<div class="obardavez-form">
					<form id="parceiroForm" action="#" method="post" >
						<section>
							<div class="title">
							  <h3>Cadastro</h3>
							  <p>Para divulgar sua marca no O Bar Da Vez 
								preencha o formulário abaixo.</p>
							</div>
							   <div class="fields-container">
								  <div class="grid-half-left">
										<div class="field empresa">
										  <label>Empresa</label>
										  <input ng-model="ctrl_parceiro.parceiro.empresa" name="empresa" placeholder="Nome da empresa" size="30" type="text" value="" />
										</div>
								  </div>
								  
								  <div class="grid-half-right">
										<div class="field cnpj">
										  <label>CNPJ</label>
										  <input ng-model="ctrl_parceiro.parceiro.cnpj" id="cnpj" name="cnpj" placeholder="99.999.999/9999-99" size="30" type="text" value="" onBlur="validaCNPJ(form.cnpj);"/>
										</div>
								  </div>
								  
								  <br clear="all" />
								  
								  <div class="grid-full">
										<div class="field contato">
										  <label>Contato</label>
										  <input ng-model="ctrl_parceiro.parceiro.contato" name="contato" placeholder="Nome de um contato na empresa" size="30" type="text" value="" />
										</div>
								  </div>
								  
								  <br clear="all" />

								  <div class="grid-half-left">
										<div class="field email">
										  <label>E-mail</label>
										  <input ng-model="ctrl_parceiro.parceiro.email" name="email" placeholder="contato@empresa.com" size="30" type="text" value="" />
										</div>
								  </div>
								  <div class="grid-half-right">
										<div class="field telephone">
										  <label>Telefone</label>
										  <input ng-model="ctrl_parceiro.parceiro.telefone" id="telefone" name="telefone" placeholder="(00)0000-0000" size="30" type="text" value="" />
										</div>
								  </div>
								  <br clear="all" />
								  
								  <div class="grid-half-left">
										<div class="field url">
										  <label>Endereço na internet</label>
										  <input ng-model="ctrl_parceiro.parceiro.url" name="url" placeholder="www.empresa.com.br" size="30" type="text" value="" />
										</div>
								  </div>
								  
								  <div class="grid-half-right">
										<div class="field logomarca">
										  <label>Logomarca</label>
										  <input ng-model="ctrl_parceiro.parceiro.logomarca" name="logomarca" size="30" type="file" value=""/>
										</div>
								  </div>
								  <br clear="all" />
								  
								  <div class="grid-half-left">
										<div class="field plano">
										  <label>Plano de pagamento</label>
										  <select ng-model="ctrl_parceiro.parceiro.plano" name="plano" 
												ng-options="plano.value as plano.displayName for plano in ctrl_parceiro.planos">
												<option value="">--- Selecione o plano de pagamento ---</option>
										  </select>
										</div>
								  </div>
								  
								  <div class="grid-half-right">
										<div class="field forma">
										  <label>Forma de pagamento</label>
										  <select ng-model="ctrl_parceiro.parceiro.forma" name="forma" 
												ng-options="forma.value as forma.displayName for forma in ctrl_parceiro.formas">
												<option value="">--- Selecione a forma de pagamento ---</option>
										  </select>
										</div>
								  </div>
								  <br clear="all" />
								  Ao clicar no botão Enviar você confirma a aceitação dos <a href="termosdeuso.php"><u>termos de uso</u></a> do site.<br></br>
								  
								  <p></p>
								  
								  <a class="btn btn-inverse" href="#" ng-click="ctrl_parceiro.save()"> {{getProperty('enviar')}} <i class="icon-chevron-right icon-white"></i></a>
								</div>
						</section>
					</form>
				</div>									
			</div>
		</div>
		
		
		<div ng-include="'footer.jsp'"></div>
		
		
	</div>

</body>
</html>